<template>
  <div class='banner-box'>
    <!--  -->
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="info in classInfo" :key="info.id"
        :style="{'background-image': `url(${info.image})`}">
        <div class="title">{{info.title}}</div>
        <div class="brief">{{info.brief}}</div>
        <div class="points" v-for="point in info.points" :key="point.id">
          <van-icon name="fire-o" />
          <span>{{point.value}}</span>
        </div>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
// import x from '';
export default {
  name: 'BannerBox',
  props: ['classInfo'],
  components: {

  },
  data() {
    return {
    };
  },
  computed: {

  },
  methods: {

  },
};
</script>

<style lang='less' scoped>

.banner-box {
  // padding: 10px;
  font-size: 12px;
  color: white;
}

.van-swipe-item {
  height: 200px;
  background-size: 100% 100%;
  padding-left: 20px;
  box-sizing: border-box;
}
.van-swipe-item .title{
  padding-top: 15px;
  font-size: 18px;
  font-weight: 600;
}
.van-swipe-item .brief{
  padding-bottom: 15px;
}
.van-swipe-item .points{
  padding-top: 10px;
}

</style>
